package com.monolithiot.camera.pojo;

import lombok.Getter;
import lombok.Setter;

import java.util.Arrays;
import java.util.List;

/**
 * Create By TreeRoot
 * Create Time: 2024/02/19 12:57
 * Class Name: CameraData
 * Description:
 * 相机数据
 *
 * @author TreeRoot
 */
@Setter
@Getter
public class CameraData {
    private byte[] imageDataByte;
    private String imageData;
    private int maxDetectionAreaLeftTopX;
    private int maxDetectionAreaLeftTopY;
    private int maxDetectionAreaRightBottomX;
    private int maxDetectionAreaRightBottomY;
    private int minDetectionAreaWidth;
    private int minDetectionAreaHeight;
    private int currentDetectionAreaLeftTopX;
    private int currentDetectionAreaLeftTopY;
    private int currentDetectionAreaRightBottomX;
    private int currentDetectionAreaRightBottomY;
    private int currentHeadDetectionAreaLeftTopX;
    private int currentHeadDetectionAreaLeftTopY;
    private int currentHeadDetectionAreaRightBottomX;
    private int currentHeadDetectionAreaRightBottomY;
    private int detectionLinePosition;
    private int headDetectionLinePosition;
    private int maxDetectionAreaLeftBottomX;
    private int maxDetectionAreaLeftBottomY;
    private int maxDetectionAreaRightTopX;
    private int maxDetectionAreaRightTopY;
    private int currentDetectionAreaLeftBottomX;
    private int currentDetectionAreaLeftBottomY;
    private int currentDetectionAreaRightTopX;
    private int currentDetectionAreaRightTopY;
    private int currentHeadDetectionAreaLeftBottomX;
    private int currentHeadDetectionAreaLeftBottomY;
    private int currentHeadDetectionAreaRightTopX;
    private int currentHeadDetectionAreaRightTopY;
    private int checkedPeopleNum;
    private List<CheckedPerson> checkedPeople;


    @Override
    public String toString() {
        return "CameraData{" +
                "imageDataByte=" + Arrays.toString(imageDataByte) +
                "imageData=" + imageData +
                ", maxDetectionAreaLeftTopX=" + maxDetectionAreaLeftTopX +
                ", maxDetectionAreaLeftTopY=" + maxDetectionAreaLeftTopY +
                ", maxDetectionAreaRightBottomX=" + maxDetectionAreaRightBottomX +
                ", maxDetectionAreaRightBottomY=" + maxDetectionAreaRightBottomY +
                ", minDetectionAreaWidth=" + minDetectionAreaWidth +
                ", minDetectionAreaHeight=" + minDetectionAreaHeight +
                ", currentDetectionAreaLeftTopX=" + currentDetectionAreaLeftTopX +
                ", currentDetectionAreaLeftTopY=" + currentDetectionAreaLeftTopY +
                ", currentDetectionAreaRightBottomX=" + currentDetectionAreaRightBottomX +
                ", currentDetectionAreaRightBottomY=" + currentDetectionAreaRightBottomY +
                ", currentHeadDetectionAreaLeftTopX=" + currentHeadDetectionAreaLeftTopX +
                ", currentHeadDetectionAreaLeftTopY=" + currentHeadDetectionAreaLeftTopY +
                ", currentHeadDetectionAreaRightBottomX=" + currentHeadDetectionAreaRightBottomX +
                ", currentHeadDetectionAreaRightBottomY=" + currentHeadDetectionAreaRightBottomY +
                ", detectionLinePosition=" + detectionLinePosition +
                ", headDetectionLinePosition=" + headDetectionLinePosition +
                ", maxDetectionAreaLeftBottomX=" + maxDetectionAreaLeftBottomX +
                ", maxDetectionAreaLeftBottomY=" + maxDetectionAreaLeftBottomY +
                ", maxDetectionAreaRightTopX=" + maxDetectionAreaRightTopX +
                ", maxDetectionAreaRightTopY=" + maxDetectionAreaRightTopY +
                ", currentDetectionAreaLeftBottomX=" + currentDetectionAreaLeftBottomX +
                ", currentDetectionAreaLeftBottomY=" + currentDetectionAreaLeftBottomY +
                ", currentDetectionAreaRightTopX=" + currentDetectionAreaRightTopX +
                ", currentDetectionAreaRightTopY=" + currentDetectionAreaRightTopY +
                ", currentHeadDetectionAreaLeftBottomX=" + currentHeadDetectionAreaLeftBottomX +
                ", currentHeadDetectionAreaLeftBottomY=" + currentHeadDetectionAreaLeftBottomY +
                ", currentHeadDetectionAreaRightTopX=" + currentHeadDetectionAreaRightTopX +
                ", currentHeadDetectionAreaRightTopY=" + currentHeadDetectionAreaRightTopY +
                ", checkedPeopleNum=" + checkedPeopleNum +
                ", checkedPeople=" + checkedPeople +
                '}';
    }
}